Revert "xen: arm: force guest memory accesses to cacheable when MMU is disabled"
authorIan Campbell <ian.campbell@citrix.com>
Tue, 11 Feb 2014 14:11:03 +0000 (14:11 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 12 Feb 2014 12:49:10 +0000 (12:49 +0000)
commit878ff4fe1816d7f808f11254b555b9e9c2f121fa
tree73f31d182f1c0fe549380f13c2076ffe70d3bc64
parented250c269831f01e92ea93bc7be3f3fdaa69e280
Revert "xen: arm: force guest memory accesses to cacheable when MMU is disabled"

This reverts commit 89eb02c2204a0b42a0aa169f107bc346a3fef802.

This approach has a short coming in that it breaks when a guest enables its
MMU (SCTLR.M, disabling HCR.DC) without enabling caches (SCTLR.C) first/at the
same time. It turns out that FreeBSD does this.

This has now been fixed (yet) another way (third time is the charm!) so remove
this support. The original commit contained some fixes which are still
relevant even with the revert of the bulk of the patch:
 - Correction to HSR_SYSREG_CRN_MASK
 - Rename of HSR_SYSCTL macros to avoid naming clash
 - Definition of some additional cp reg specifications

Since these are still useful they are not reverted.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/domain.c
xen/arch/arm/traps.c
xen/include/asm-arm/domain.h